from hashlib import md5
chinese = '你好呀'
md5_chinese = md5(chinese.encode('utf8')).hexdigest()
print(md5_chinese)  # 4f65fdb33e0f2bd0de6bd1b41fdea968

from hashlib import md5
english = 'd8hgeo-2d73k0s2'
md5_str = md5(english.encode('utf8')).hexdigest()
print(md5_str)  # 74335cc0ff464e7006d1530260385a52